<include file="inc:header" />	

<div class="page" id='{$data.act}'>
<include file="inc:title" />
<div class="content register_login_content">

<!-- 这里是页面内容区 -->
<div class="register_login" id="mb_register">
		<div class="bg_fff register_login_pd">
			<div class="bb1 bor height w_b">
				 <div class="name">姓名</div>
				 <input class="r_l_input w_b_f_1" id="real_name" name="real_name" type="text" placeholder="输入真实姓名"/>		     
			</div>
			<div class="bb1 bor height w_b">
				 <div class="name">身份证</div>
				 <input class="r_l_input w_b_f_1" id="idno" name="idno" type="text" placeholder="输入身份证号码"/>				 
			</div>
		</div>
		<div class="register_login_pd">
			<input class="ui-button_login r_l_but" type="submit" onclick="do_commit()" value="确定"/>
		</div>	
</div>
<script>
function do_commit() {
		var ajaxurl = SITE_DOMAIN  + '/index.php?m=Home&c=index&a=register_do&ajax=1';
		var query = newObject();
		query.real_name = $.trim($("#real_name").val());
		query.idno = $.trim($("#idno").val());
		query.post_type = "json";
		$.showIndicator();
		$.ajax({
			url: ajaxurl,
			data: query,
			type: "Post",
			dataType: "json",
			success: function (data) {
				$.hideIndicator();
				if (data.status == 1) {
					$.alert(data.show_err, function () {
						if (data.acct_url)
                            RouterURL(SITE_DOMAIN + '/index.php?m=Home&c=uccenter&a=index', "#Uccenter", 2);
							//RouterURL(SITE_DOMAIN.data.acct_url, "none", 1);
						else
							RouterURL(SITE_DOMAIN + '/index.php?m=Home&c=uccenter&a=index', "#Uccenter", 2);
					});
				}
				else {
					$.alert(data.show_err);
				}
			}
			, error: function () {
				$.hideIndicator();
				$.toast("错误");
			}
		});
	}
</script>
<include file="inc:footer" />